



#ifndef __FONT_manager_H
#define __FONT_manager_H


#include "commen.h"



//字符控制结构体


//freetype矢量字库---美观
typedef  struct FontBitMap{
//显示器定义的结构体避免重复，直接引用
	struct Region tRegion;
//		int leftup_x;
//		int leftup_y;
//		int heigh;
//		int width;
	
//矢量字符当前基点
		int CurOrigin_x;
		int CurOrigin_y;
//矢量字符下一个基点
		int NexOrigin_x;
		int NexOrigin_y;		
		unsigned char *bitmapbuff;
}fontbitmap, *fontbitmap_p;



typedef struct Font_Operation{

		char *name;
		int(*FontInit)(char * finename);
		int(*SetFontSize)(int fontsize);
		int(*GetFontBitMap)(unsigned int  dwcode, fontbitmap_p fontbitmapp);

		struct Font_Operation *ptNEXT;

}fontoperation, *fontoperation_p;



//注册进链表
void RegsiterFontlib(fontoperation_p fontoperationp);



//初始化系统
void FontlibInit(void );
//选择指定的字类
int selectdefaulterFontlib(char * name);
//初始化字类
int initdefaulterFontlib(char * finename);




void  SetFontSize(int fontsize);


int GetFontBitMap(unsigned int  dwcode, fontbitmap_p fontbitmapp);

#endif





